package application.pictureView
{
	import appAdater.IAppAdater;
	
	import com.imcrl.component.pictab.PictabItem;
	import com.imcrl.component.pictab.PictabQ;
	import com.imcrl.core.ClassFactory;
	import com.imcrl.core.imcrl_internal;
	
	import starling.textures.Texture;
	
	import starlingui.manager.TextureResource;
	
	
	/**
	 * 基本的图片浏览程序 
	 * @author crl
	 * 
	 */	
	public class PictureView extends PictabQ implements IAppAdater
	{
		public function PictureView()
		{
			
			var factory:ClassFactory=new ClassFactory(PictureItem);
			
			super(factory);
			
			var list:Array=new Array();
			
			for(var i:int=0;i<11;i++){
				list.push("assets/app/"+i+".jpg")
			}
			this.displayList(list);
	
		}
		
		public function pause():void
		{
			// TODO Auto Generated method stub
			
		}
		
		public function start():void
		{
			// TODO Auto Generated method stub
			var texture:Texture=TextureResource.getEmpty(this.sceneWidth,this.sceneHeight);
			initBbackgroundTexture(texture);
			
			use namespace imcrl_internal;
			
			_background.color=0;
		}
		
		public function unload():void
		{
			// TODO Auto Generated method stub
			
		}
		
	}
}